import request from '../utils/request.js'
// 更新用户信息
export const updateUserInfoAPI = (userform) => {
  return request({
    method: 'PUT',
    url: '/my/userinfo',
    data: userform
  })
}
// 更新用户头像
export const updateUserAvatarAPI = (avatarStr) => {
  return request({
    method: 'patch',
    url: '/my/update/avatar',
    data: {
      avatar: avatarStr
    }
  })
}

// 修改密码
export const updatePwdAPI = (pwdForm) => {
  return request({
    method: 'patch',
    url: '/my/updatepwd',
    data: pwdForm
  })
}
